const router = require("koa-router")()

const { listPage, detailPage } = require("../../controller/goods")
const { isLogin } = require('../../middleware/user')
// 配置路由
// 商品分类列表
router.get("/list/:categoryId", isLogin(), listPage)
// 商品详情
router.get("/detail/:id", isLogin(), detailPage)

module.exports = router
